package com.indexingsystem.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.indexingsystem.boss.admin.mapper.ProductCategoryRelationsMapper;
import com.indexingsystem.boss.entity.ProductCategoryRelations;
import com.indexingsystem.system.service.IProductCategoryRelationsService;

@Service
public class ProductCategoryRelationsServiceImpl implements IProductCategoryRelationsService{
    
	@Resource
	private ProductCategoryRelationsMapper productCategoryRelationsMapper;
	@Override
	public int deleteByPrimaryKey(String proCategoryRelationId) {
		return productCategoryRelationsMapper.deleteByPrimaryKey(proCategoryRelationId);
	}

	@Override
	public int deleteProductCategoryRelationsByIdBatch(List<String> proCategoryRelationIdList) {
		return productCategoryRelationsMapper.deleteProductCategoryRelationsByIdBatch(proCategoryRelationIdList);
	}

	@Override
	public int insert(ProductCategoryRelations record) {
		return productCategoryRelationsMapper.insert(record);
	}

	@Override
	public int insertSelective(ProductCategoryRelations record) {
		return productCategoryRelationsMapper.insertSelective(record);
	}

	@Override
	public ProductCategoryRelations selectByPrimaryKey(String proCategoryRelationId) {
		return productCategoryRelationsMapper.selectByPrimaryKey(proCategoryRelationId);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductCategoryRelations record) {
		return productCategoryRelationsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductCategoryRelations record) {
		return productCategoryRelationsMapper.updateByPrimaryKey(record);
	}
}